package com.talkweb.platform.commonapi.entity.db;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

@Data
@ToString
@Entity
@Table(name = "bpm_archiveddata")
@ApiModel(value = "ArchiveData", description = "公文表")
public class ArchiveData implements Serializable {
	
	@Id
	@Column(name = "WF_OrUnid")
	@GeneratedValue(strategy = GenerationType.IDENTITY, generator = "SELECT REPLACE(UUID(),'-','')")
    private String orUnId;

	@Column(name = "WF_Appid")
	@ApiModelProperty(value = "应用id", required = false)
    private String appId;
	
	@Column(name = "SUBJECT")
	@ApiModelProperty(value = "标题", required = false)
	private String subject;

	@Column(name = "WF_Processid")
	@ApiModelProperty(value = "流程id", required = false)
    private String processId;

	@Column(name = "WF_ProcessName")
	@ApiModelProperty(value = "流程名称", required = false)
    private String processName;

	@Column(name = "WF_AddName")
	@ApiModelProperty(value = "创建人id", required = false)
    private String addName;

	@Column(name = "WF_AddName_CN")
	@ApiModelProperty(value = "创建人名称", required = false)
    private String addNameCn;

	@Column(name = "WF_DocNumber")
	@ApiModelProperty(value = "", required = false)
    private String docNumber;

	@Column(name = "WF_CurrentNodeid")
	@ApiModelProperty(value = "当前环节id", required = false)
    private String currentNodeid;

	@Column(name = "WF_Status")
	@ApiModelProperty(value = "公文状态", required = false)
    private String status;

	@Column(name = "WF_VersionNumber")
	@ApiModelProperty(value = "", required = false)
    private String versionNumber;

	@Column(name = "WF_SourceEntrustUserid")
	@ApiModelProperty(value = "", required = false)
    private String sourceEntrustUserid;

	@Column(name = "WF_TargetEntrustUserid")
	@ApiModelProperty(value = "", required = false)
    private String targetEntrustUserid;

	@Column(name = "WF_ProcessNumber")
	@ApiModelProperty(value = "流程编号", required = false)
    private String processNumber;

	@Column(name = "WF_MainNodeid")
	@ApiModelProperty(value = "主流id", required = false)
    private String mainNodeid;

	@Column(name = "WF_MainDocUnid")
	@ApiModelProperty(value = "", required = false)
    private String mainDocUnid;

	@Column(name = "topDocUnid")
	@ApiModelProperty(value = "", required = false)
    private String topDocUnid;

	@Column(name = "WF_TotalTime")
	@ApiModelProperty(value = "", required = false)
    private String totalTime;

	@Column(name = "WF_EndTime")
	@ApiModelProperty(value = "", required = false)
    private String endTime;

	@Column(name = "WF_BusinessNum")
	@ApiModelProperty(value = "", required = false)
    private String businessNum;

	@Column(name = "WF_EndBusinessid")
	@ApiModelProperty(value = "", required = false)
    private String endBusinessid;

	@Column(name = "WF_Folderid")
	@ApiModelProperty(value = "", required = false)
    private String folderid;

	@Column(name = "WF_TransFlag")
	@ApiModelProperty(value = "", required = false)
    private String transFlag;

	@Column(name = "WF_ArcFormNumber")
	@ApiModelProperty(value = "", required = false)
    private String arcFormNumber;

	@Column(name = "WF_AddDeptid")
	@ApiModelProperty(value = "", required = false)
    private String addDeptid;

	@Column(name = "WF_Systemid")
	@ApiModelProperty(value = "", required = false)
    private String systemid;

	@Column(name = "WF_DocCreated")
	@ApiModelProperty(value = "", required = false)
    private String docCreated;

	@Column(name = "WF_LastModified")
	@ApiModelProperty(value = "", required = false)
    private String lastModified;

	@Column(name = "topProcessid")
	@ApiModelProperty(value = "", required = false)
    private String topProcessid;

	@Column(name = "URGENTLEVEL")
	@ApiModelProperty(value = "", required = false)
    private String urgentLevel;

	@Column(name = "flowCode")
	@ApiModelProperty(value = "", required = false)
    private String flowCode;

	@Column(name = "old_url")
	@ApiModelProperty(value = "", required = false)
    private String oldUrl;

	@Column(name = "WF_TopProcessName")
	@ApiModelProperty(value = "", required = false)
    private String topProcessName;

	@Column(name = "WF_AddFolderName")
	@ApiModelProperty(value = "", required = false)
    private String addFolderName;

	@Column(name = "WF_AddTopFolderName")
	@ApiModelProperty(value = "", required = false)
    private String addTopFolderName;

	@Column(name = "WF_AddTopDeptid")
	@ApiModelProperty(value = "", required = false)
    private String addTopDeptid;

	@Column(name = "log_is_host_dept")
	@ApiModelProperty(value = "", required = false)
    private String logIsHostDept;

	@Column(name = "log_host_flag")
	@ApiModelProperty(value = "", required = false)
    private String logHostFlag;

	@Column(name = "ISSUPERVISION")
	@ApiModelProperty(value = "", required = false)
    private String isSupervision;

	@Column(name = "ISEVALUATED")
	@ApiModelProperty(value = "", required = false)
    private String isEvaluated;

	@Column(name = "WF_CREATEDEPTID")
	@ApiModelProperty(value = "", required = false)
    private String createDeptid;

	@Column(name = "WF_CREATEDEPTNAME")
	@ApiModelProperty(value = "", required = false)
    private String createDeptname;

	@Column(name = "WF_TOPCREATEDEPTID")
	@ApiModelProperty(value = "", required = false)
    private String topCreateDeptid;

	@Column(name = "WF_TOPCREATEDEPTNAME")
	@ApiModelProperty(value = "", required = false)
    private String topCreateDeptname;

	@Column(name = "ISARCHIVE")
	@ApiModelProperty(value = "", required = false)
    private String isArchive;

	@Column(name = "WF_Author")
	@ApiModelProperty(value = "", required = false)
    private String author;
	
	@Column(name = "WF_Author_CN")
	@ApiModelProperty(value = "", required = false)
    private String authorCn;
	
	@Column(name = "WF_EndUser")
	@ApiModelProperty(value = "", required = false)
    private String endUser;
	
	@Column(name = "WF_AllReaders")
	@ApiModelProperty(value = "", required = false)
    private String allReaders;
	
	@Column(name = "WF_CopyUser")
	@ApiModelProperty(value = "", required = false)
    private String copyUser;
	
	@Column(name = "WF_CurrentNodeName")
	@ApiModelProperty(value = "", required = false)
    private String currentNodeName;
	
	@Column(name = "xmlData")
	@ApiModelProperty(value = "", required = false)
    private String xmlData;

    private static final long serialVersionUID = 1L;

    
}